package com.xd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan(basePackages={"com.xd.core.**.mapper"})
@ComponentScan(basePackages={"com.xd.**"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableScheduling
@EnableCaching
@ServletComponentScan
@EnableRabbit
//@EnableRetrycccc
public class XDProjectApplication {

    public static void main(String[] args) {
        SpringApplication.run(XDProjectApplication.class, args);
    }


}
